import Vue from 'vue'
import Router from 'vue-router'
import index from '@/taoshitu/index.vue'
import search from '@/taoshitu/search.vue'
import recommendation from '@/taoshitu/recommendation.vue'
import recommendationText from '@/taoshitu/recommendationText.vue'
import status from '@/taoshitu/status.vue'
import task from '@/taoshitu/task.vue'
import dailyTasks from '@/taoshitu/dailyTasks.vue'
import newTask from '@/taoshitu/newTask.vue'
import diary from '@/taoshitu/diary.vue'
import wode from '@/taoshitu/wode.vue'
import achievements from '@/taoshitu/achievements.vue'
import userStatus from '@/taoshitu/userStatus.vue'
import userFriends from '@/taoshitu/userFriends.vue'
import news from '@/taoshitu/news.vue'
import addFriend from '@/taoshitu/addFriend.vue'
import recruit from '@/taoshitu/recruit.vue'
import recruitDetails from '@/taoshitu/recruitDetails.vue'
import challenge from '@/taoshitu/challenge.vue'
import challengeText from '@/taoshitu/challengeText.vue'
import userChallenge from '@/taoshitu/userChallenge.vue'
import userCollection from '@/taoshitu/userCollection.vue'
import set from '@/taoshitu/set.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    }, {
      path: '/search',
      name: 'search',
      component: search
    }, {
      path: '/recommendation',
      name: 'recommendation',
      component: recommendation
    }, {
      path: '/recommendationText/:id?',
      name: 'recommendationText',
      component: recommendationText
    }, {
      path: '/status',
      name: 'status',
      component: status
    }, {
      path: '/task',
      name: 'task',
      component: task
    }, {
      path: '/dailyTasks',
      name: 'dailyTasks',
      component: dailyTasks
    }, {
      path: '/newTask',
      name: 'newTask',
      component: newTask
    }, {
      path: '/diary',
      name: 'diary',
      component: diary
    }, {
      path: '/wode',
      name: 'wode',
      component: wode
    }, {
      path: '/achievements',
      name: 'achievements',
      component: achievements
    }, {
      path: '/userStatus',
      name: 'userStatus',
      component: userStatus
    }, {
      path: '/userFriends',
      name: 'userFriends',
      component: userFriends
    }, {
      path: '/news',
      name: 'news',
      component: news
    }, {
      path: '/addFriend',
      name: 'addFriend',
      component: addFriend
    }, {
      path: '/recruit',
      name: 'recruit',
      component: recruit
    }, {
      path: '/recruitDetails/:id?',
      name: 'recruitDetails',
      component: recruitDetails
    }, {
      path: '/challenge',
      name: 'challenge',
      component: challenge
    }, {
      path: '/challengeText/:id?',
      name: 'challengeText',
      component: challengeText
    }, {
      path: '/userChallenge',
      name: 'userChallenge',
      component: userChallenge
    }, {
      path: '/userCollection',
      name: 'userCollection',
      component: userCollection
    }, {
      path: '/set',
      name: 'set',
      component: set
    }
  ]
})
